#include <gui/motorpage_screen/MotorPageView.hpp>

MotorPageView::MotorPageView()
{

}

void MotorPageView::setupScreen()
{
    MotorPageViewBase::setupScreen();
}

void MotorPageView::tearDownScreen()
{
    MotorPageViewBase::tearDownScreen();
}
//振动电机操作
void MotorPageView::turnMotor()
{
		bool enable=openMotor.getState();
		presenter->turnMotorStatus(enable);	//振动电机状态的设置
}
//蜂鸣器操作
void MotorPageView::turnBuzzer()
{
		bool enable=openBuzzer.getState();
		presenter->turnBuzzerStatus(enable);	//蜂鸣器状态的设置
}
//风扇操作
void MotorPageView::turnFan()
{
		bool enable=openFan.getState();
		presenter->turnFanStatus(enable);	//风扇状态的设置
}
//页面跳转
void MotorPageView::MotorPageChange(uint8_t newFiveKeyFunc)
{
		handleKeyEvent(newFiveKeyFunc);
}